package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 充值返现|积分
 * </p>
 *
 * @author chenxuebin
 * @since 2019-03-18
 */
@TableName("t_czfan")
public class Czfan extends Model<Czfan> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 充值返类型@1：送积分；2：送现金；3：送优惠券；4：送虚拟币；5：送商品；6：混合模式
     */
	private Integer ftype;
    /**
     * 返积分
     */
	@TableField(strategy = FieldStrategy.IGNORED)
	private Integer fanjifen;
    /**
     * 返现金
     */
	@TableField(strategy = FieldStrategy.IGNORED)
	private BigDecimal fancash;
    /**
     * 返券
     */
	@TableField(strategy = FieldStrategy.IGNORED)
	private Long fanquan;
    /**
     * 返券数
     */
	@TableField(strategy = FieldStrategy.IGNORED)
	private Integer quanshu;
    /**
     * 返币
     */
	@TableField(strategy = FieldStrategy.IGNORED)
	private Integer fanbi;
    /**
     * 返商品
     */
	@TableField(strategy = FieldStrategy.IGNORED)
	private Long fangoods;
    /**
     * 返商品数
     */
	@TableField(strategy = FieldStrategy.IGNORED)
	private Integer goodsshu;
    /**
     * 冲多少
     */
	private BigDecimal chong;
    /**
     * 几级会员
     */
	private Integer level;

	private BigDecimal discount;

    /**
     * 会员名
     */
	private String hyname;
	private Long uid;
	private Long mid;
	private Long mpid;
	private Long sid;
	private Integer state;
	private Date createtime;
	private Date modifytime;
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getFtype() {
		return ftype;
	}

	public void setFtype(Integer ftype) {
		this.ftype = ftype;
	}

	public Integer getFanjifen() {
		return fanjifen;
	}

	public void setFanjifen(Integer fanjifen) {
		this.fanjifen = fanjifen;
	}

	public BigDecimal getFancash() {
		return fancash;
	}

	public void setFancash(BigDecimal fancash) {
		this.fancash = fancash;
	}

	public Long getFanquan() {
		return fanquan;
	}

	public void setFanquan(Long fanquan) {
		this.fanquan = fanquan;
	}

	public Integer getQuanshu() {
		return quanshu;
	}

	public void setQuanshu(Integer quanshu) {
		this.quanshu = quanshu;
	}

	public Integer getFanbi() {
		return fanbi;
	}

	public void setFanbi(Integer fanbi) {
		this.fanbi = fanbi;
	}

	public Long getFangoods() {
		return fangoods;
	}

	public void setFangoods(Long fangoods) {
		this.fangoods = fangoods;
	}

	public Integer getGoodsshu() {
		return goodsshu;
	}

	public void setGoodsshu(Integer goodsshu) {
		this.goodsshu = goodsshu;
	}

	public BigDecimal getChong() {
		return chong;
	}

	public void setChong(BigDecimal chong) {
		this.chong = chong;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getHyname() {
		return hyname;
	}

	public void setHyname(String hyname) {
		this.hyname = hyname;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Czfan{" +
			"id=" + id +
			", ftype=" + ftype +
			", fanjifen=" + fanjifen +
			", fancash=" + fancash +
			", fanquan=" + fanquan +
			", quanshu=" + quanshu +
			", fanbi=" + fanbi +
			", fangoods=" + fangoods +
			", goodsshu=" + goodsshu +
			", chong=" + chong +
			", level=" + level +
			", hyname=" + hyname +
			", uid=" + uid +
			", mid=" + mid +
			", mpid=" + mpid +
			", sid=" + sid +
			", state=" + state +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
